package thread;

public class Demo16 {
    public static void main(String[] args) throws InterruptedException {
        System.out.println("beg: "+System.currentTimeMillis());//获取到毫秒级的时间戳
        Thread.sleep(1000);
        System.out.println("end: "+System.currentTimeMillis());//时间一定大于等于sleep设定的时间和运行环境，和实际的机器的配置都有关系
    }

}
